package oracle.apps.financials.collection.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PercentMetricsItemValueHolder extends MetricsItemValueHolder {

	public int findXIndexByValue(double xvalue) {

		if (!xValueList.isEmpty()) {
			List<Date> xValues = (List<Date>) (xValueList.get(0));
			for (int i = 0; i < xValues.size(); i++) {
				if (xValues.get(i).getTime() == xvalue) {
					return i;
				}
			}
		}
		return 0;
	}

	public List<List<Double>> getYListByBu(List<String> buList) {

		List<List<Double>> yValueList = new ArrayList<List<Double>>();
		for(String bu:buList){
			
			List<List<Double>> buYVaues=this.buMap.get(bu);
			
		}

		return yValueList;
	}

}
